/**
 * 名称： 企业文档相关接口
 * 作者： 王景赢
 * 日期： 2024-12-18 15:52:00
 * 对接人： 郭伟
 * 
*/

import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { knowledge, system, resource } from '@/api/apiModulesType';

// 查询回收站
export const apiRecycleBinSelectRecycle = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/recycleBin/selectRecycle`,
        method: 'get',
        params: query
    });
};

// 恢复文件
export const apiRecycleBinRecoverFile = (data?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/recycleBin/recoverFile`,
        method: 'post',
        params: data
    });
};

// 删除文件 or 清空回收站
export const apiRecycleBinDelete = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: `/${knowledge}/recycleBin/delete/recycle`,
        method: 'get',
        params: query
    });
};